#pragma once
#include "windows.h"
#define WIN10_1709 16299
#define WIN10_1809 17763

using RtlGetVersion = NTSTATUS(NTAPI*)(PRTL_OSVERSIONINFOW lpVersionInformation);

static UINT GetWinBuild()
{
	RTL_OSVERSIONINFOEXW verInfo = { sizeof(verInfo) };
	auto func = (RtlGetVersion)GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "RtlGetVersion");
	func((PRTL_OSVERSIONINFOW)&verInfo);
	//printf("buildnumber:%d platformid:%d wProductType:%d\n", verInfo.dwBuildNumber, verInfo.dwPlatformId, verInfo.wProductType);
	return verInfo.dwBuildNumber;
}